<?php
require_once("inc.public.php");
require_once(M_ROOT."/functions/downline/downline_function.php");
require_once(M_ROOT."/functions/comm/comm_function.php");

$timestart = microtime();
$timestart = explode(" ", $timestart);

echo "<pre>";

$uid = '16335';
do{
	$user = get_user_detail_by_id($uid);
	echo "$user[matrix_upline]\n";
	$uid = $user['matrix_upline'];
}while($uid);

echo "Peak Memory: ".memory_get_peak_usage()."\n";
$timeend = microtime();echo $timeend;
$timeend = explode(" ", $timeend);
echo "\nTotal Time: ".(($timeend[0] + $timeend[1]) - ($timestart[0] + $timestart[1]));
?>